package Pages;

import appium1.common.Helper;
import org.openqa.selenium.WebElement;

public class PageUserFavoriteList {
    private Helper helper;
    public PageUserFavoriteList(Helper helper){
        this.helper=helper;
    }
    public WebElement getFavoritesTtitleTextView(int index){
        return helper.findByid("net.oschina.app:id/tv_title",index);
    }
    public String getFavoritesTitlt(int index){
        return helper.getText(getFavoritesTtitleTextView(index));
    }
}
